package cn.kgc.client;

import cn.kgc.entity.Group;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author mosin
 * date 2022/1/17
 * @version 1.0
 */
@FeignClient("GROUPS")
public interface GroupClient {
    @GetMapping("/groups/{id}")
    Group group(@PathVariable Integer id);
}
